/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.partytype.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fosung.frame.common.persistence.Page;
import com.fosung.frame.common.service.CrudService;
import com.fosung.frame.modules.partytype.entity.PartyType;
import com.fosung.frame.modules.partytype.dao.PartyTypeDao;

/**
 * 党组织类型Service
 * @author wu
 * @version 2017-08-29
 */
@Service
@Transactional(readOnly = true)
public class PartyTypeService extends CrudService<PartyTypeDao, PartyType> {
	
	@Autowired
	private PartyTypeDao dao;

	public PartyType get(String id) {
		return super.get(id);
	}
	
	public List<PartyType> findList(PartyType partyType) {
		return super.findList(partyType);
	}
	
	public Page<PartyType> findPage(Page<PartyType> page, PartyType partyType) {
		return super.findPage(page, partyType);
	}
	
	@Transactional(readOnly = false)
	public void save(PartyType partyType) {
		super.save(partyType);
	}
	
	@Transactional(readOnly = false)
	public void delete(PartyType partyType) {
		super.delete(partyType);
	}
	@Transactional(readOnly = false)
	public void updateStart(PartyType partyType) {
		super.updateStart(partyType);
	}
	@Transactional(readOnly = false)
	public void updateStop(PartyType partyType) {
		super.updateStop(partyType);
	}
	
	public PartyType check(PartyType partyType) {
		return dao.check(partyType);
	}
}